package com.cloud.order.service;

import com.fuzhixuan.cloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "cloud-provider-payment")
public interface FeignService {
    @GetMapping(value = "/getServerPort")
    String getPort();

    @PostMapping(value = "/payment/getById")
    CommonResult getById(@RequestParam("id") Integer id);

    @GetMapping(value = "/payment/timeout")
    String timeOut();
}
